<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <if condition="$book.name neq ''">{$book.name|MD5}<else/>暂无姓名</if><br/>
    <if condition="$book,title neq ''">{$book.title|substr=4,18}<else/>暂无姓名</if><br/>
    <if condition="$book.time neq ''">{$book.time|date='Y-m-d',###}<else/>暂无姓名</if><br/>
    获取一个server变量：{$Think.server.HTTP_CONNECTION}
    获取get变量name： {$Request.param.name}
    获取get变量title：{$Request.param.title}
    <br>
    <form method="post" action="first_blood" enctype="multipart/form-data">
        <input name="file_list" type="file">
        <input type="submit" value="提交">
    </form>
    <button>点击事件</button>
</body>
</html>
<script type="text/javascript" src="__ROOT__/__JS__/jquery.pjax.js"></script>
<script type="text/javascript" src="__ROOT__/__JS__/jquery.min.js"></script>
<script type="text/javascript">
    $(function(){
        $('button').click(function(){
            $.pjax.click(event, {container: containerSelector});
            alert('这是一个pjax事件');
        })
    })

//    if ($.support.pjax) {
//        $(document).on('click', 'button[data-pjax]', function(event) {
////            var container = $(this).closest('[data-pjax-container]');
////            var containerSelector = '#' + container.id;
//
//        })
//    }
</script>